mapOnFirst

inline fun <T1, R> Either<T1, *>.mapOnFirst(block: (T1) -> R): R?

Return

Result of block if this is EitherFirst